let rankings = JSON.parse(localStorage.getItem('rankings'));
rankings.sort((a,b)=>{
  return (a.score === b.score ? (a.time === b.time ? (a.submit_at > b.submit_at ? 1:-1):(a.time > b.time ? -1:0)):(a.score > b.score ? -1:1))
});
if (rankings.length > 0){
    rankings_list_dom.innerHTML = null;
    for(let ranking of rankings){
        let item = ranking_list_item_template_dom.cloneNode(true);
        item.removeAttribute('id');
        utils.display(item,'block');
        item.querySelector('.nickname').innerText = ranking.nickname;
        item.querySelector('.score').innerText = ranking.score;
        item.querySelector('.level').innerText = ranking.level;
        item.querySelector('.wallet').innerText = ranking.wallet;
        item.querySelector('.time').innerText = ranking.time;
        item.querySelector('.submit_at').innerText = utils.Date.format(ranking.submit_at);
        rankings_list_dom.append(item);
    }
}